public class Undergraduate extends Student {
    public Undergraduate(String name, int age) {
        super(name, age);
    }
    @Override
    public String toString() {
        return "Undergraduate{" + super.toString() + '}';
    }
    @Override
    public void introduce() {
        System.out.println("I am an undergraduate student.");
    }
    @Override
    public void study() {
        System.out.println("Undergraduate student studying basic courses.");
    }
}
